#pragma strict


function Start () {

}

function Update () {
    var fingerCount = 0;
    var fingersMoving = 0;
    
    for (var touch : UnityEngine.Touch in Input.touches) {
    
        if (touch.phase != TouchPhase.Ended && touch.phase != TouchPhase.Canceled)
            fingerCount++;
            
        if (touch.phase == TouchPhase.Moved)
        	fingersMoving++;
    }
    guiText.text = "User has " + fingersMoving + " finger(s) moving on the screen";
}